/**
 * caicongyang.com Inc.
 * Copyright (c) 2004-2017 All Rights Reserved.
 */
package com.caicongyang.design.chain.of.responsibility;

/**
 * @author caicongyang1
 * @version id: Handler, v 0.1 17/5/19 下午7:08 caicongyang1 Exp $$
 */
public abstract class Handler {
    protected Handler superior;

    private String    name;

    public Handler(String name) {
        this.name = name;
    }

    public void setSuperior(Handler superior) {
        this.superior = superior;
    }

    public abstract void handldRequest(String type);

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
